/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufba.lasid.base;

import br.ufba.lasid.base.api.IResource;
import br.ufba.lasid.base.api.IResourcetable;
import java.util.Hashtable;

/**
 *
 * @author aliriosa
 */
public class Resourcetable extends Hashtable<String, IResource> implements IResourcetable{
    
    @Override
    public void add(IResource resource){
        if(resource != null && resource.getID() !=null){
            put(resource.getID(), resource);
        }
    }
    
}
